<include file="App/Admin/View/Public/left.html" />
<!--/sidebar-->
<div class="main-wrap">
	<div class="crumb-wrap">
		<div class="crumb-list">
			<i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span
				class="crumb-step">&gt;</span><span class="crumb-name">添加链接</span>
		</div>
	</div>
	<div class="result-wrap">
		<form action="{:U('Link/add_link')}" method="post" id="myform"
			name="myform" enctype="multipart/form-data">
			<div class="config-items">
				<div class="config-title">
					<h1>
						<i class="icon-font">&#xe00a;</i>添加链接
					</h1>
				</div>
				<div class="result-content">
					<table width="100%" class="insert-tab">
						<tbody>
							<notempty name="list"> </notempty>
							<tr>
								<th><i class="require-red"></i>链接名称：</th>
								<td><input name="name" type="text" value="{$list['name']}"></td>
							</tr>
							<tr>
								<th><i class="require-red"></i>链接地址：</th>
								<td><input name="url" type="text" value="{$list['url']}"></td>
							</tr>
							<notempty name="list.tupian"> 
							<tr>
								<th><i class="require-red"></i>链接图片：</th>
								<td><img src="{$list.tupian}" style="height:61px;widtn:158px;" ></td>
							</tr>
							</notempty>
							<tr>
								<th><i class="require-red"></i>链接图片：</th>
								<td><input name="tupian" type="file" ></td>
							</tr>
							<input type="hidden" name="oldtupian" value="{$list['tupian']}"/>
							<tr>
								<th><i class="require-red"></i>链接状态：</th>
								<td><input name="status" type="radio" value="1"
								<eq name="list.status" value='1'>checked="checked"</eq> >启用 <input
									name="status" type="radio" value="0"
								<eq name="list.status" value='0'>checked="checked"</eq> >禁用</td>
							</tr>
							<notempty name="list">
							<tr>
								<th><i class="require-red"></i>添加时间：</th>
								<td>{$list.add_time|date="Y-m-d H:i:s",###}</td>
							</tr>

							<input type="hidden" name="id" value="{$list['id']}" /> </notempty>
							<tr>
								<th></th>
								<td><input type="submit" value="提交"
									class="btn btn-primary btn6 mr10"> <a
									href="{:U('Link/index')}"><input type="button" value="返回"
										class="btn btn6"></a></td>
							</tr>

						</tbody>
					</table>
				</div>
			</div>
		</form>
	</div>
</div>


<!--/main-->
</div>
</body>
</html>
<script>
$(".sub-menu").eq(1).show();
$(".sub-menu").eq(1).children("li").eq(2).addClass("on");
</script>
